import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import VueAxios from "vue-axios"
import Vant from 'vant'
import Panel from 'vant'
import qs from 'qs'
import 'vant/lib/index.css'


axios.defaults.headers.token = store.state.token;
//统一前缀
axios.defaults.baseURL = 'http://101.37.156.94:8082/api'

createApp(App)
    .use(store)
    .use(router)
    .use(VueAxios, axios)
    .use(Vant)
    .use(Panel)
    .use(qs)
    .mount('#app')